﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using System.IO;

namespace Sample
{
    class Program
    {
        //[STAThreadAttribute()]
        static void Main(string[] args)
        {
            log4net.Config.XmlConfigurator.Configure(new FileInfo("log4net.config"));
            Bots.IndexBuilder.Instance.Start();
            Application.EnableVisualStyles();
            Application.Run(new Form1());
            Application.ApplicationExit += new EventHandler(Application_ApplicationExit);
        }

        static void Application_ApplicationExit(object sender, EventArgs e)
        {
            Bots.IndexBuilder.Instance.Stop();
        }
    
    }
}
